<template>
  <div>
    <h1>今日看点</h1>
    <van-index-bar :index-list="indexList">
      <van-index-anchor index="1">标题1</van-index-anchor>
      <van-cell title="文本" />
      <van-cell title="文本" />
      <van-cell title="文本" />

      <van-index-anchor index="2">标题2</van-index-anchor>
      <van-cell title="文本" />
      <van-cell title="文本" />
      <van-cell title="文本" />
    </van-index-bar>
  </div>
</template>
<script>
import { IndexBar, IndexAnchor } from "vant";
export default {
  components: {
    [IndexAnchor.name]: IndexAnchor,
    [IndexBar.name]: IndexBar,
  },
};
</script>